<?php

use Illuminate\Support\Facades\Route;



Route::namespace('user')->group(function () {
    Route::prefix('user')->middleware('UserMiddleware')->group(function () {
        Route::any('user_info','UsersController@user_info');
        Route::any('recharges','UsersController@recharges');
        Route::get('user_spreads','UsersController@user_spreads');
        Route::get('settings','UsersController@settings');
        Route::post('user_to_activity','UsersController@user_to_activity');
        Route::post('level_Up_u','UsersController@levelUpU');
        Route::post('set_pay_pass_user','UsersController@setPayPassUser');
        Route::post('set_pay_pass','UsersController@setPayPass');
        Route::post('withdrawal','UsersController@withdrawal');
        Route::post('set_email_user','UsersController@setEmailUser');
        Route::any('bills','UsersController@bills');
        Route::post('create_order','OrdersController@create_order');
        Route::get('orders','OrdersController@orders');
        Route::any('goods','CommonController@goods');
        Route::post('auto_tuo','CommonController@auto_tuo');
        Route::post('recharge','UsersController@recharge');
        Route::post('withwals','UsersController@withwals');
        Route::post('set_password','UsersController@setPassword');
    });

    Route::prefix('user')->group(function (){
        Route::post('register','UsersController@register');
        Route::post('login','UsersController@login');
        Route::post('changepwd','UsersController@changepwd');//修改密码
        Route::post('code','UsersController@code');//获取邮件验证码
        Route::get('test','BaseController@test');
        Route::get('datasR','CommonController@datas');
        Route::get('sys','CommonController@sys');

        Route::any('notice_recharge','CommonController@notice_recharge')->name('notice_recharge');

    });
});
